package com.jgzx.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * @author libo
 * @date 2021/10/22 16:09
 */
@ApiModel(value = "企业宣传视频DTO")
@Data
public class EnterprisePublicityDTO {

    @ApiModelProperty(value = "宣传视频ID，更新ID必填", example = "null")
    @Min(value = 1, message = "ID不能为负数和0")
    private Long enterprise_publicity_id;

    @ApiModelProperty(value = "宣传标题", required = true)
    @NotEmpty(message = "宣传标题不能为空")
    private String publicity_title;

    @ApiModelProperty(value = "宣传视频地址", required = true)
    @NotEmpty(message = "宣传视频地址不能为空")
    private String video_url;

    @ApiModelProperty(value = "宣传视频封面", required = true)
    @NotEmpty(message = "宣传视频封面不能为空")
    private String publicity_cover;

    @ApiModelProperty(value = "简介")
    private String introduction;

}
